<template>
    <div class="title">{{ titleText }}</div>
    <up-load @upload="upload" :imgUrl="imgList" />
    <div class="disc">描述</div>
    <el-input v-model="maintenanceStore.treeSelectNode.remark" :autosize="{ minRows: 6 }" type="textarea" placeholder="请输入故障描述" />
</template>

<script setup>
import upLoad from "@/components/upLoad.vue";
import { useMaintenance } from "@/store/maintenance.js";
const maintenanceStore = useMaintenance();
defineProps({
    titleText: {
        type: String,
        default: ""
    },
    imgList: {
        type: Array,
        default: []
    }
});
const upload = (value) => {
    maintenanceStore.treeSelectNode.imgList = value;
};
</script>

<style lang="scss" scoped>
.title {
    margin-bottom: 16px;
    font-weight: 600;
    color: #1b3646;
}
.disc {
    margin: 16px 0;
    font-size: 14px;
    color: #595959;
}
.img {
    display: flex;
    flex-wrap: wrap;
    img {
        margin-top: 16px;
        margin-right: 16px;
        width: 120px;
        height: 120px;
    }
}
.disc-one {
    margin-top: 16px;
    font-size: 14px;
    span {
        &:first-child {
            color: #8c8c8c;
        }
        &:last-child {
            color: #595959;
        }
    }
}
</style>
